
<style>
    .form-signin {
        max-width: 330px;
        padding: 15px;
        margin: 0 auto;
    }
    .form-signin .form-signin-heading,
    .form-signin .checkbox {
        margin-bottom: 10px;
    }
    .form-signin .checkbox {
        font-weight: normal;
    }
    .form-signin .form-control {
        position: relative;
        height: auto;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding: 10px;
        font-size: 16px;
    }
    .form-signin .form-control:focus {
        z-index: 2;
    }
    .form-signin input[type="email"] {
        margin-bottom: -1px;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }
    .form-signin input[type="password"] {
        margin-bottom: 10px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
</style>

<ul class="breadcrumb">
    <li>
        <?php
        echo $control->getAjaxLink(array(
            'id' => 'showManageSpace',
            'name' => '管理机构信息'
        ));
        ?>
    </li>
    <li >&nbsp;|&nbsp;<?php
        echo $control->getAjaxLink(array(
            'id' => 'showRelationshipList',
            'name' => '管理机构关系'
        ));
        ?>
    </li>
    <li class="active">
        &nbsp;|&nbsp;设置机构关系
    </li>
</ul>

<?php if (isset($actionResult)) { ?>
    <p class="well-small text-error">
        <?php echo $actionResult; ?>
    </p>
<?php } ?>

<?php
$form = $this->beginWidget('CActiveForm', array(
    "id" => "manage-spaceRelationship-form",
    'enableAjaxValidation' => FALSE,
    'htmlOptions' => array(),
        ));
?>
<?php
echo CHtml::label('机构ID', 'mySpaceId');
echo CHtml::activeTextField($model, $mySpaceIdField, array(
    'class' => 'form-control',
    'placeholder' => '机构ID...', 'required' => 'true', 'autofocus' => 'true'));
echo CHtml::label('是我的' . '：', 'relationship');
echo CHtml::activeDropDownList($model, $relationshipField, $relationshipData, array(
    'class' => 'form-control',
    'placeholder' => '机构关系...',
    'required' => 'true'));
?>
<label></label>
<?php
echo $control->getAjaxLink(
        array('name' => '保存机构关系', 'id' => BUISpaceConn::Add_Relationship), array(
    'htmlOptions' => array(
        'class' => 'btn btn-primary')));
?>
<?php $this->endWidget(); ?>